package com.cy.uv.enetity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("take_out")
public class Product {

    /**
     * 商品id
     */
    @TableId(value = "id",type = IdType.AUTO)
    @TableField(value = "id")
    private Integer id;
    /**
     * 商家id
     */
    @TableField(value = "merchant_id")
    private Integer merchantId;
    /**
     * 商品名称
     */
    @TableField(value = "t_name")
    private String tName;
    /**
     * 商品价格
     */
    @TableField(value = "price")
    private double price;
    /**
     * 商品图片
     */
    @TableField(value = "image")
    private String image;
    /**
     * 商品重量
     */
    @TableField(value = "weight")
    private int Pweight;
    /**
     * 商品成分
     */
    @TableField(value = "ingredient")
    private String Pingredient;
    /**
     * 商品分类
     */
    @TableField(value = "sort")
    private String sort;

}
